// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from '@/store'
import 'swiper/css/swiper.css'
import '@/mock/mockServe.js'

import '../public/iconfont/iconfont.css'



import Carousel from '@/components/Carousel'
import '@/plugins/validate'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);


Vue.config.productionTip = false
    // 全局注册carsouel
Vue.component(Carousel.name, Carousel)

/* eslint-disable no-new */
new Vue({
    render: h => h(App),
    router,
    store,
    beforeCreate() {
        Vue.prototype.$bus = this

    }
}).$mount('#app')